package com.thinkfit.jy.utils;

import android.content.Context;
import android.graphics.Point;
import android.view.Display;
import android.view.WindowManager;

public class DisplayUtil {
    public  static  Point  getScreenSize(Context context){
        WindowManager windowManager =(WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
        Display display =windowManager.getDefaultDisplay();
        Point size =new Point();
        display.getSize(size);
        return  size;

    }
}
